"""
配置模块 - 存放全局配置和路径设置
"""

import os

# 路径配置
MUSEUM_DOCS_PATH = "./data/museum_docs"
VECTOR_DB_PATH = "./data/vector_db"
KNOWLEDGE_GRAPH_PATH = "./data/museum_kg.json"
VECTOR_INDEX_FILE = os.path.join(VECTOR_DB_PATH, "faiss.index")
DOCS_INFO_FILE = os.path.join(VECTOR_DB_PATH, "documents.json")
UPLOADED_IMAGES_DIR = "./uploaded_images"
FONTS_DIR = "./fonts"
ASSETS_DIR = "./assets"

# 确保目录存在
for dir_path in [MUSEUM_DOCS_PATH, VECTOR_DB_PATH, UPLOADED_IMAGES_DIR, FONTS_DIR, ASSETS_DIR]:
    os.makedirs(dir_path, exist_ok=True) 